import 'dart:convert';

import '../util/Storage.dart';

class UserInfo {
  //获取本地存储的用户信息
  //异步操作异步调用
  static Future<Map> getUserInfo() async {
    String userInfo = await Storage.getString('userInfo');
    if (userInfo != null) {
      Map result = json.decode(userInfo);
      return result;
    }
    return null;
  }
}
